﻿</div>
<!-- 中部 end -->
<!-- 反馈
    <div id="feedback-btn">
        <p><a href="#">反 馈</a></p>
    </div>
-->

<!-- start footer -->
<div class='footer'>
    <div class='footer_main'>
        <div class='links'>
            <span>
                <a href="#"></a>| <a href="#"></a>
            </span>
        </div>
        <div class='others'>
            <span>Copyright © <span id='copyright'></span><a href="http://blog.dt27.cn/" target="_blank">DT27</a> All Rights Reserved
            </span>
        </div>
    </div>
</div>
<!-- end footer -->

<script type="text/javascript">
    var editor;
    head.js("http://lib.sinaapp.com/js/jquery/1.8/jquery.min.js", "../Scripts/PoshyTip/jquery.poshytip.min.js", "../Scripts/artDialog/jquery.artDialog.js", "../Editor/kindeditor-min.js", "../Editor/lang/zh_CN.js", "../Scripts/validation.js");
    head.ready(function () {
        //var $ = jQuery.noConflict();
        $('#loading').fadeOut("slow");
        /*淡化顶栏*/
        $(window).scroll(function () {
            var scrollTop = $(window).scrollTop();
            if (scrollTop != 0)
                $('#top-bar').stop().animate({ 'opacity': '0.2' }, 400);
            else
                $('#top-bar').stop().animate({ 'opacity': '1' }, 400);
        });
        $('#top-bar').hover(
            function (e) {
                var scrollTop = $(window).scrollTop();
                if (scrollTop != 0) {
                    $('#top-bar').stop().animate({ 'opacity': '1' }, 400);
                }
            },
            function (e) {
                var scrollTop = $(window).scrollTop();
                if (scrollTop != 0) {
                    $('#top-bar').stop().animate({ 'opacity': '0.2' }, 400);
                }
            }
        );
        /*end*/

        /*去除超链接的虚线框*/
        $('a').bind('focus', function () { if (this.blur) this.blur(); });
        /*end*/

        /*CopyRight*/
        var date = new Date();
        var year = date.getFullYear();
        $('#copyright').append(year);
        /*end CopyRight*/


        /*编辑器*/
        KindEditor.ready(function (K) {
            editor = K.create('textarea[name="QContent"]', {
                themeType: 'simple',
                readonlyMode: true,
                resizeType: 1,
                cssPath: '../Editor/plugins/code/prettify.css',
                items: [
                    'source', 'undo', 'redo', 'bold', 'italic', 'underline', 'strikethrough', 'subscript', 'superscript', 'fontsize', 'forecolor', 'hilitecolor', 'removeformat', 'link', 'unlink', 'emoticons', 'image', 'code', '', 'preview'
                ],
                uploadJson: '../Editor/upload_json.ashx',
                fileManagerJson: '../Editor/file_manager_json.ashx',
                allowFileManager: true,
                afterCreate: function () {
                    var self = this;
                    K.ctrl(document, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                    K.ctrl(self.edit.doc, 13, function () {
                        self.sync();
                        K('form[name=example]')[0].submit();
                    });
                },
                afterFocus: function () {
                    editor.readonly(false);
                    $(".ke-container-simple").addClass("ke-container-simple-focus");
                },
                afterBlur: function () {
                    editor.readonly();
                    $(".ke-container-simple").removeClass("ke-container-simple-focus");
                    $(".ke-edit-textarea").attr("disabled", false);
                }
            });
            $(".ke-edit-textarea").attr("disabled", false);
            //prettyPrint();
            $(".ke-edit-textarea").click(function () {
                editor.readonly(false);
                $(".ke-container-simple").addClass("ke-container-simple-focus");
            });
        });
        /*end 编辑器*/

    });
</script>
</body>
</html>
